/**
 * @author Leong Wai Lun A0032831R
 */

package geoarea;

import properties.PropertiesDAO;
/**
 * 
 * read data from geoarea file,
 * write data to geoarea file
 *
 */
public class GeoAreaInfoDAO extends PropertiesDAO {
	/**
	 * reads all the Data stored in the GeoArea file
	 * @return boolean
	 */
	public void readDTOs() {
		super.readDTOs(DTOTYPES.GEOAREAINFO);
	}

	/**
	 * writes all the Data into the GeoArea file.
	 * @return boolean
	 */
	public void writeDTOs() {
		super.writeDTOs(DTOTYPES.GEOAREAINFO);
	}
	
	/**
	 * returns the specified Data according the input id
	 * @param id the id of Data
	 * @return returns the specified Data according the input id

	 */
	public GeoAreaInfoDTO getDTO(String id) {
		return (GeoAreaInfoDTO) super.getDTO(id);
	}
}
